#include <iostream>
#include <cstdio>
using namespace std;

class base1 {
	private:
		int b1;
		void set( int i) {
			b1 = 1;
		}
	public :
		int i;
};

class base2 {
	private:
		int b2;
	public:
		void set( int i)	{
			b2 = i ;
		} int get() {
			return b2 ;
		} int i;
};

class derived : public base1, public base2 {
	public:
		void print()	{
			printf("%d", get() );
			base2::set(5);
		}
};

int main ()	{
	derived d;
	d.base2::set(5);
	d.base1::i = 5;
	d.base2::i = 5;
}

